package com.unknowpupil.web.component.qrzt.scheduled;

import com.unknowpupil.web.component.qrzt.BaseSchedulerJop;
import com.unknowpupil.web.utils.DateUtil;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Classname: TestJob
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/10/20 4:00
 * @Description:
 * @Version: 1.0
 */
public class TestJob implements BaseSchedulerJop {
    private static final Logger logger = LoggerFactory.getLogger(TestJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        logger.info("{}-> 任务开始",context);
        logger.error(DateUtil.getDateTime());
        logger.info("{}-> 任务结束",context);
    }
}
